Skip to content

Add GitHub Action to fetch model garden data#15

Merged
williamw merged 2 commits intomasterfrom
MKT-88-refresh-models-action
Mar 16, 2026
Merged

Add GitHub Action to fetch model garden data#15
williamw merged 2 commits intomasterfrom
MKT-88-refresh-models-action

Conversation

@williamw
Copy link
Copy Markdown
Contributor

@williamw williamw commented Mar 16, 2026

  • Adds a GitHub Action that fetches model garden data from the Yatai API and commits data/models.json to the repo for serving via jsdelivr CDN
  • Adds a nightly schedule (midnight UTC) with manual trigger

Notes

  • The workflow uses three secrets already configured in GitHub Actions: MODULAR_CLOUD_API_TOKEN, MODULAR_CLOUD_ORG, MODULAR_CLOUD_BASE_URL
  • The data/ directory is created automatically by the script on first run
  • The CDN URL will be cdn.jsdelivr.net/gh/modularml/modular-webflow@master/data/models.json

Changes

Workflow & Scripts

File Change
.github/workflows/fetch-models.yml New — workflow with nightly cron schedule and manual trigger; runs the fetch script and commits the result
scripts/fetch-models.js New — Node.js script that fetches all models from the Yatai API and writes data/models.json

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@williamw williamw self-assigned this Mar 16, 2026
@williamw williamw marked this pull request as ready for review March 16, 2026 18:04
- Run model garden fetch daily at midnight UTC
- Retain manual workflow_dispatch trigger
@williamw williamw merged commit 6bd15c4 into master Mar 16, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant